package com.sample.kokou;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class SampleDBHelper extends SQLiteOpenHelper {

    public SampleDBHelper(Context context) {
        super(context, DatabaseInfo.name, null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(DatabaseInfo.createTable());
        for(String insert_statement : DatabaseInfo.insertStatements()) {
            db.execSQL(insert_statement);
        }
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    }

}
